package com.gshrms.org.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.gshrms.common.annotation.Excel;
import com.gshrms.common.core.domain.CommonEntity;

import java.util.Date;

/**
 * 职级类别对象 org_post_category
 * 
 * @author ruoyi
 * @date 2024-10-28
 */
@Data
public class OrgPostCategory extends CommonEntity
{
    private static final long serialVersionUID = 1L;

    /** 职级类别ID */
    @TableId
    private Long postCategoryId;

    /** 类别名称 */
    @Excel(name = "类别名称")
    private String postCategoryName;

    /** 创建人 */
    @Excel(name = "创建人")
    private Long createId;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    public void setPostCategoryId(Long postCategoryId) 
    {
        this.postCategoryId = postCategoryId;
    }

    public Long getPostCategoryId() 
    {
        return postCategoryId;
    }
    public void setPostCategoryName(String postCategoryName) 
    {
        this.postCategoryName = postCategoryName;
    }

    public String getPostCategoryName() 
    {
        return postCategoryName;
    }
    public void setCreateId(Long createId) 
    {
        this.createId = createId;
    }

    public Long getCreateId() 
    {
        return createId;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("postCategoryId", getPostCategoryId())
            .append("postCategoryName", getPostCategoryName())
            .append("createId", getCreateId())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
